﻿<%@ Control Language="C#" %>
<%@ Register src="../module/Comment-Reply-home.ascx" tagname="Reply" tagprefix="inal" %>

<script runat="server">
    
    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Lang = Utils.GetQueryString("lang", 1);
        Comments comments = new Comments();
        Repeater_List.DataSource = comments.List_Comment(1, Top_Size, Item_Lang);
        Repeater_List.DataBind();
    }
    private int lang = 1;
    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
    private int Top_size = 100;
    public int Top_Size
    {
        get { return Top_size; }
        set { Top_size = value; }
    }
    private int Item_typ = 0;
    public int Item_Typ
    {
        get { return Item_typ; }
        set { Item_typ = value; }
    }
    
</script>
<div id="Message-List">
    <asp:Repeater runat="server" ID="Repeater_List">
        <ItemTemplate>
            <div class="item">
                <bdo><%#Eval("Item_Time", "{0:yyyy/MM/dd HH:mm}")%></bdo>
                <b></b>
                <div class="text">
                    <span><%#Eval("Item_User")%></span>
                    <p><%#Eval("Item_Content")%></p>
                </div>
                <div class="ch10"></div>
                <!--回复区域-->
                <inal:Reply runat="server" Item_Reply='<%#Eval("Item_Id")%>' UserName='<%#Eval("Item_User")%>' />
                <div class="ch10"></div>
                </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
